import request from '@/utils/request'

// 查询districtclass列表
export function listDistrictclass(query) {
  return request({
    url: '/districtclass/districtclass/list',
    method: 'get',
    params: query
  })
}

// 查询districtclass详细
export function getDistrictclass(cDCCode) {
  return request({
    url: '/districtclass/districtclass/' + cDCCode,
    method: 'get'
  })
}

export function getDistrictclass2(cDCName) {
  return request({
    url: '/districtclass/districtclass/info/' + cDCName,
    method: 'get'
  })
}

// 查询districtclass详细
export function getDistrictclass1(cDCCode) {
  return request({
    url: '/districtclass/districtclass/getInfo1' + cDCCode,
    method: 'get'
  })
}
// 新增districtclass
export function addDistrictclass(data) {
  return request({
    url: '/districtclass/districtclass',
    method: 'post',
    data: data
  })
}

// 修改districtclass
export function updateDistrictclass(data) {
  return request({
    url: '/districtclass/districtclass',
    method: 'put',
    data: data
  })
}

// 删除districtclass
export function delDistrictclass(cDCCode) {
  return request({
    url: '/districtclass/districtclass/' + cDCCode,
    method: 'delete'
  })
}
